const { mysql } = require('../qcloud')

module.exports = async (ctx) => {
    const topList = await mysql('books').select('id','count','image','title')
                                .orderBy('count','desc')
                                .limit(9)
    ctx.state.data = {
        msg : topList
    }
}